package comparator;

import java.util.Comparator;

import bean.Grade;

public class ScoreComparator implements Comparator<Grade> {

	@Override
	public int compare(Grade grade1, Grade grade2) {
		return Double.compare(grade1.getScore(), grade2.getScore());
	}

}
